package com.goldgov.information.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.goldgov.information.dao.ArticleRulesDao;
import com.goldgov.information.service.ArticleRules;
import com.goldgov.information.service.ArticleRulesQuery;
import com.goldgov.information.service.ArticleRulesService;
@Service
public class ArticleRulesServiceImpl implements ArticleRulesService {

	@Autowired
	ArticleRulesDao articleRulesDao;

	@Override
	public List<ArticleRules> getArticleRulesList(ArticleRulesQuery query) {
		return articleRulesDao.getArticleRulesList(query);
	}

	@Override
	public void updateArticleRules(ArticleRules articleRules) {
		articleRulesDao.updateArticleRules(articleRules);
	}

	@Override
	public void addArticleRules(ArticleRules articleRules) {
		articleRulesDao.addArticleRules(articleRules);
	}

	@Override
	public ArticleRules getArticleRulesByID(String rulesID) {
		return articleRulesDao.getArticleRulesByID(rulesID);
	}
	
	

}
